<html>

<head>
	<title><?=$title?></title>
	<style type="text/css">
		*, body {
			font-family: sans-serif;
			font-size: 11px;
		}
			
		.table {
			border-collapse: collapse;
		}
		.table th, .table td {
			border:1px solid #000;
			padding: 1ex 1em;
		}
		.table th {
			color: #fff;
			background: #000;
		}
	</style>
</head>

<body>
	<div style="width: 98%">
	<?php
		$this->table->clear();
		$this->table->set_horizontal(false);
		$this->table->set_heading($fields);
		echo $this->table->generate($data);
	?>
	</div>
</body>

</html>